 function sort(obj) {
     for (var i = 0; i < obj.length; i++) {
         tmp = obj[i];
         pos = i;
         for (var j = i + 1; j < obj.length; j++) {
             if (obj[j] > tmp) {
                 tmp = obj[j];
                 pos = j;
             }
         }
         obj[pos] = obj[i];
         obj[i] = tmp;
     }
     return obj;
 }